﻿@using Microsoft.AspNet.Identity;
@model SDCloudSolution.SDCloud.Web.Models.Account.ManagePageViewModel


@{
    ViewBag.Title = "Manage Account";
    Layout = MVC.Shared.Views._AuthorizedLayout;
}
<div class="oj-pagingcontrol-nav-page">
    <h1>@ViewBag.Title</h1>
</div>
<div class="oj-panel oj-panel-alt2 oj-panel-shadow-lg oj-sm-10 oj-lg-6 oj-xl-5 oj-md-7 oj-flex-item" style="margin:auto;">
        <p class="text-success">@ViewBag.StatusMessage</p>
        <div class="row">
            <div class="oj-md-12">
                @if (Model.HasLocalPassword)
                {
                    @Html.Partial("_ChangePasswordPartial", Model.PasswordManageViewModel)
                }
                else
                {
                    @Html.Partial("_SetPasswordPartial", Model.PasswordManageViewModel)
                }

                <section id="externalLogins" class="oj-text-primary-color oj-padding-top">
                    @Html.Action(MVC.Account.RemoveAccountList())
                    @Html.Partial("_ExternalLoginsListPartial", new { Action = "LinkLogin", ReturnUrl = ViewBag.ReturnUrl })
                </section>

                <section class="oj-panel">
                    @Html.Action(MVC.Account.UserClientApplicationList())
                </section>
            </div>
        </div>
</div>